<?php
use Yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
$this->title = '充值';
?>
<div class="container">
    <div class="row">
      
        <?php echo $this->render('_leftnav') ?>
        <div class="col-md-10">
          <div class="page-header clearfix">
            <h1 class="pull-left">充值</h1>
            <div class="pull-right">

                                            
            </div>
          </div>

          
                                
        <?php echo $this->render('_coinsetting') ?>


	        <?php
	        $form = ActiveForm::begin([
		        'options' => ['class' => 'form-horizontal','id'=>'coin-settings-form'],
		        'action'=>Url::to(['system/changecoinsave']),
		        'method'=>'post',
		        'fieldConfig' => [
			        'template' => '<div class="row form-group"><div class="col-md-2 control-label">{label}</div><div class="controls col-md-7 radios">{input}{error}<div class="help-block">开启后，可充值网校虚拟币</div></div></div>'
		        ],
	        ]);
	        ?>

<!--  <form class="form-horizontal" method="post" id="coin-settings-form" novalidate="">-->

	        <?= $form->field($model, 'changecoin')->radioList(['1'=>'开启','0'=>'关闭']) ?>

<!--    <div class="row form-group">-->
<!--      <div class="col-md-2 control-label">-->
<!--        <label>充值功能</label>-->
<!--      </div>-->
<!--      <div class="controls col-md-7 radios">-->
<!--        <label><input name="charge_coin_enabled" value="1" checked="checked" type="radio"> 开启</label><label><input name="charge_coin_enabled" value="0" type="radio"> 关闭</label>-->
<!--        <div class="help-block">开启后，可充值网校虚拟币</div>-->
<!--      </div>-->
<!--    </div>-->

    <div class="row form-group">
      <div class="col-md-2 control-label"></div>
      <div class="controls col-md-8">
	      <?= Html::submitButton('提交', ['class'=>'btn btn-primary']) ?>
      </div>
    </div>

<?php ActiveForm::end();?>

        </div>

          </div>
  </div>
